.class public Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;
.super Lcom/esfile/screen/recorder/player/h;
.source "ExoGLVideoPlayer.java"


# instance fields
.field private h:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

.field private i:Lcom/esfile/screen/recorder/player/controller/ExoGLMediaController;

.field private j:Lcom/esfile/screen/recorder/player/exo/a$g;

.field private k:Lcom/esfile/screen/recorder/player/exo/a$c;

.field private l:Lcom/esfile/screen/recorder/player/exo/a$j;

.field private m:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView$g;

.field private n:Lcom/esfile/screen/recorder/player/exo/a$d;

.field protected o:Lcom/esfile/screen/recorder/player/exo/a$g;

.field protected p:Lcom/esfile/screen/recorder/player/exo/a$c;

.field protected q:Lcom/esfile/screen/recorder/player/exo/a$j;

.field protected r:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView$g;

.field protected s:Lcom/esfile/screen/recorder/player/exo/a$d;

.field protected t:Landroid/view/View$OnClickListener;

.field private u:Landroid/widget/SeekBar$OnSeekBarChangeListener;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-direct {p0, p1, v0}, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const/4 v0, 0x0

    .line 2
    invoke-direct {p0, p1, p2, v0}, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0

    .line 3
    invoke-direct {p0, p1, p2, p3}, Lcom/esfile/screen/recorder/player/h;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 4
    new-instance p1, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer$c;

    invoke-direct {p1, p0}, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer$c;-><init>(Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->j:Lcom/esfile/screen/recorder/player/exo/a$g;

    .line 5
    new-instance p1, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer$d;

    invoke-direct {p1, p0}, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer$d;-><init>(Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->k:Lcom/esfile/screen/recorder/player/exo/a$c;

    .line 6
    new-instance p1, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer$e;

    invoke-direct {p1, p0}, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer$e;-><init>(Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->l:Lcom/esfile/screen/recorder/player/exo/a$j;

    .line 7
    new-instance p1, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer$f;

    invoke-direct {p1, p0}, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer$f;-><init>(Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->m:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView$g;

    .line 8
    new-instance p1, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer$g;

    invoke-direct {p1, p0}, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer$g;-><init>(Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;)V

    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->n:Lcom/esfile/screen/recorder/player/exo/a$d;

    .line 9
    invoke-direct {p0}, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->m()V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;I)I
    .locals 0

    .line 3
    iput p1, p0, Lcom/esfile/screen/recorder/player/h;->a:I

    return p1
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;)Landroid/animation/ObjectAnimator;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/player/h;->b:Landroid/animation/ObjectAnimator;

    return-object p0
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/player/h;->d:Z

    return p1
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;)Landroid/animation/ObjectAnimator;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/player/h;->b:Landroid/animation/ObjectAnimator;

    return-object p0
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;Z)Z
    .locals 0

    .line 2
    iput-boolean p1, p0, Lcom/esfile/screen/recorder/player/h;->d:Z

    return p1
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;)Landroid/widget/SeekBar$OnSeekBarChangeListener;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->u:Landroid/widget/SeekBar$OnSeekBarChangeListener;

    return-object p0
.end method

.method static synthetic d(Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;)Landroid/os/Handler;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/player/h;->f:Landroid/os/Handler;

    return-object p0
.end method

.method static synthetic e(Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;)Lcom/esfile/screen/recorder/player/controller/ExoGLMediaController;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->i:Lcom/esfile/screen/recorder/player/controller/ExoGLMediaController;

    return-object p0
.end method

.method private m()V
    .locals 2

    .line 1
    invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;

    move-result-object v0

    sget v1, Les/y4;->durec_exo_gl_player:I

    invoke-static {v0, v1, p0}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    .line 2
    sget v0, Les/x4;->local_player_video_view:I

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

    iput-object v0, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->h:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

    .line 3
    iget-object v1, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->j:Lcom/esfile/screen/recorder/player/exo/a$g;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;->setOnPreparedListener(Lcom/esfile/screen/recorder/player/exo/a$g;)V

    .line 4
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->h:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

    iget-object v1, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->k:Lcom/esfile/screen/recorder/player/exo/a$c;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;->setOnCompletionListener(Lcom/esfile/screen/recorder/player/exo/a$c;)V

    .line 5
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->h:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

    iget-object v1, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->l:Lcom/esfile/screen/recorder/player/exo/a$j;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;->setOnVideoSizeChangedListener(Lcom/esfile/screen/recorder/player/exo/a$j;)V

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->h:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

    iget-object v1, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->m:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView$g;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;->setOnVideoViewSizeChangedListener(Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView$g;)V

    .line 7
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->h:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

    iget-object v1, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->n:Lcom/esfile/screen/recorder/player/exo/a$d;

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;->setOnErrorListener(Lcom/esfile/screen/recorder/player/exo/a$d;)V

    .line 8
    sget v0, Les/x4;->local_player_controller:I

    invoke-virtual {p0, v0}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/esfile/screen/recorder/player/controller/ExoGLMediaController;

    iput-object v0, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->i:Lcom/esfile/screen/recorder/player/controller/ExoGLMediaController;

    .line 9
    new-instance v1, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer$a;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer$a;-><init>(Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/player/controller/a;->setOnPauseClickListener(Landroid/view/View$OnClickListener;)V

    .line 10
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->i:Lcom/esfile/screen/recorder/player/controller/ExoGLMediaController;

    new-instance v1, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer$b;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer$b;-><init>(Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;)V

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/player/controller/a;->setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V

    return-void
.end method


# virtual methods
.method public b(I)V
    .locals 1

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->h:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;->seekTo(I)V

    .line 4
    iget p1, p0, Lcom/esfile/screen/recorder/player/h;->a:I

    const/4 v0, 0x3

    if-ne p1, v0, :cond_0

    const/4 p1, 0x4

    .line 5
    iput p1, p0, Lcom/esfile/screen/recorder/player/h;->a:I

    .line 6
    :cond_0
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->e()V

    return-void
.end method

.method public c()Z
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->h:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;->isPlaying()Z

    move-result v0

    return v0
.end method

.method protected e()V
    .locals 4

    .line 2
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->getCurrentPosition()I

    move-result v0

    .line 3
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->getDuration()I

    move-result v1

    .line 4
    iget-object v2, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->h:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

    invoke-virtual {v2}, Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;->getBufferPercentage()I

    move-result v2

    .line 5
    iget-object v3, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->i:Lcom/esfile/screen/recorder/player/controller/ExoGLMediaController;

    invoke-virtual {v3, v0, v1, v2}, Lcom/esfile/screen/recorder/player/controller/a;->a(III)V

    return-void
.end method

.method public getCurrentPosition()I
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->h:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;->getCurrentPosition()I

    move-result v0

    .line 2
    iget v1, p0, Lcom/esfile/screen/recorder/player/h;->a:I

    const/4 v2, 0x3

    if-ne v1, v2, :cond_0

    .line 3
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->getDuration()I

    move-result v0

    :cond_0
    return v0
.end method

.method public getDuration()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->h:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;->getDuration()I

    move-result v0

    return v0
.end method

.method protected getMediaController()Landroid/view/View;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->i:Lcom/esfile/screen/recorder/player/controller/ExoGLMediaController;

    return-object v0
.end method

.method protected getUpdatePlayTime()I
    .locals 1

    const/16 v0, 0x14

    return v0
.end method

.method public h()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->i:Lcom/esfile/screen/recorder/player/controller/ExoGLMediaController;

    invoke-virtual {p0}, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->c()Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/player/controller/ExoGLMediaController;->setPlayState(Z)V

    return-void
.end method

.method public i()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->h:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;->pause()V

    const/4 v0, 0x0

    .line 2
    invoke-virtual {p0, v0}, Lcom/esfile/screen/recorder/player/h;->a(I)V

    return-void
.end method

.method public j()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->h:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;->b()V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->h:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;->pause()V

    return-void
.end method

.method public k()V
    .locals 1

    const/4 v0, 0x2

    .line 1
    iput v0, p0, Lcom/esfile/screen/recorder/player/h;->a:I

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->h:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;->start()V

    .line 3
    invoke-virtual {p0}, Lcom/esfile/screen/recorder/player/h;->f()V

    return-void
.end method

.method public l()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/h;->f:Landroid/os/Handler;

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->h:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;->pause()V

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->h:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;->c()V

    return-void
.end method

.method public setOnCompletionListener(Lcom/esfile/screen/recorder/player/exo/a$c;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->p:Lcom/esfile/screen/recorder/player/exo/a$c;

    return-void
.end method

.method public setOnErrorLietener(Lcom/esfile/screen/recorder/player/exo/a$d;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->s:Lcom/esfile/screen/recorder/player/exo/a$d;

    return-void
.end method

.method public setOnPlayBtnClickListener(Landroid/view/View$OnClickListener;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->t:Landroid/view/View$OnClickListener;

    return-void
.end method

.method public setOnPreparedListener(Lcom/esfile/screen/recorder/player/exo/a$g;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->o:Lcom/esfile/screen/recorder/player/exo/a$g;

    return-void
.end method

.method public setOnSeekBarChangeListener(Landroid/widget/SeekBar$OnSeekBarChangeListener;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->u:Landroid/widget/SeekBar$OnSeekBarChangeListener;

    return-void
.end method

.method public setOnVideoSizeChangedListener(Lcom/esfile/screen/recorder/player/exo/a$j;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->q:Lcom/esfile/screen/recorder/player/exo/a$j;

    return-void
.end method

.method public setOnVideoViewSizeChangedListener(Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView$g;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->r:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView$g;

    return-void
.end method

.method public setVideoPath(Ljava/lang/String;)V
    .locals 1

    .line 1
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 2
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/player/exo/ExoGLVideoPlayer;->h:Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/player/exo/DuExoGLVideoView;->setVideoPath(Ljava/lang/String;)V

    return-void
.end method
